import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "../Public/SeqIntHelper";
import { SEntityId } from "../Public/SEntityId";
import { SPoint } from "../Public/SPoint";
type int = number;
//class SPlantFlowerInfo
    
    export  class SPlantFlowerInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.flowerEntityId.__write(arg1);
            this.point.__write(arg1);
            arg1.writeInt(this.bossId);
            arg1.writeInt(this.playerId);
            SeqIntHelper.write(arg1, this.hadBlessPlayers);
            arg1.writeDate(this.plantDt);
            arg1.writeDate(this.matureDt);
            arg1.writeDate(this.getDt);
            arg1.writeInt(this.autoBlessNum);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.flowerEntityId = new SEntityId();
            this.flowerEntityId.__read(arg1);
            this.point = new SPoint();
            this.point.__read(arg1);
            this.bossId = arg1.readInt();
            this.playerId = arg1.readInt();
            this.hadBlessPlayers = SeqIntHelper.read(arg1);
            this.plantDt = arg1.readDate();
            this.matureDt = arg1.readDate();
            this.getDt = arg1.readDate();
            this.autoBlessNum = arg1.readInt();
            return;
        }

        public /* var */flowerEntityId: SEntityId;

        public /* var */point: SPoint;

        public /* var */bossId: int;

        public /* var */playerId: int;

        public /* var */hadBlessPlayers: Array<any>;

        public /* var */plantDt: Date;

        public /* var */matureDt: Date;

        public /* var */getDt: Date;

        public /* var */autoBlessNum: int;
    }
